export const columns = [
  {
    type: 'index',
    label: '序号',
    width: 60
  },
  {
    type: 'slot',
    slotName: 'name',
    label: '职位名称'
  },
  {
    prop: 'salary',
    label: '薪资'
  },
  {
    prop: 'experience',
    label: '经验要求'
  },
  {
    prop: 'education',
    label: '学历要求'
  },
  {
    type: 'slot',
    slotName: 'companyName',
    label: '公司'
  },
  {
    type: 'slot',
    slotName: 'enableStatus',
    label: '状态'
  }
  // {
  //   type: 'slot',
  //   slotName: 'action',
  //   label: '操作',
  //   width: 200
  // }
]

export const formItemsFun = function (options) {
  return [
    {
      type: 'input',
      label: '职位名称',
      data: 'name'
    },
    {
      type: 'select',
      label: '薪资',
      data: 'salary',
      options: [
        { label: '面议' },
        { label: '1-3K' },
        { label: '3-5K' },
        { label: '5-8K' },
        { label: '8-12K' },
        { label: '12-15K' },
        { label: '15-20K' },
        { label: '20K以上' }
      ],
      extendKey: {
        label: 'label',
        value: 'label'
      }
    },
    {
      type: 'input',
      label: '公司',
      data: 'companyName'
    }
  ]
}
